home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / client / scripts / client.cs < prev    next >
Encoding:
Text File  |  2005-11-23  |  985 b   |  33 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine 
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6. //-----------------------------------------------------------------------------
  7. // Server Admin Commands
  8. //-----------------------------------------------------------------------------
  9.  
  10. function SAD(%password)
  11. {
  12.    if (%password !$= "")
  13.       commandToServer('SAD', %password);
  14. }
  15.  
  16. function SADSetPassword(%password)
  17. {
  18.    commandToServer('SADSetPassword', %password);
  19. }
  20.  
  21.  
  22. //----------------------------------------------------------------------------
  23. // Misc server commands
  24. //----------------------------------------------------------------------------
  25.  
  26. function clientCmdSyncClock(%time)
  27. {
  28.    // Store the base time in the hud control it will automatically increment.
  29.    if (isObject(HudClock))
  30.       HudClock.setTime(%time);
  31. }
  32.  
  33.